package me.zhengjie.suli.tasks.domain;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.base.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author Allen Gao
 * @date 2023-01-09
 **/
@Entity
@Data
@Table(name="task_detail")
public class TaskDetail extends BaseEntity implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "ID")
    private String id;

    @Column(name = "`task_id`")
    @ApiModelProperty(value = "任务ID")
    private String taskId;

    @Column(name = "`type`")
    @ApiModelProperty(value = "类型")
    private String type;

    @Column(name = "`pk_qty`")
    @ApiModelProperty(value = "数量")
    private BigDecimal pkQty;

    @Column(name = "`pk_list`")
    @ApiModelProperty(value = "箱号条码")
    private String pkList;
    @Column(name = "`out_pk_list`")
    @ApiModelProperty(value = "拆箱后箱条号码")
    private String outPkList;

    @Column(name = "`wa_no`")
    @ApiModelProperty(value = "工厂")
    private String waNo;

    @Column(name = "`su_no`")
    @ApiModelProperty(value = "供应商代码")
    private String suNo;

    @Column(name = "`lot_no`")
    @ApiModelProperty(value = "批次号")
    private String lotNo;

    @Column(name = "`vmi_code`")
    @ApiModelProperty(value = "是否VMI")
    private String vmiCode;

    @Column(name = "`source_id`")
    @ApiModelProperty(value = "原单号")
    private String sourceId;

    @Column(name = "`from_gender`")
    @ApiModelProperty(value = "从等级")
    private String fromGender;

    @Column(name = "`to_gender`")
    @ApiModelProperty(value = "至等级")
    private String toGender;

    @Column(name = "`box_num`")
    @ApiModelProperty(value = "箱号")
    private String boxNumber;

    @Column(name = "`el_no`")
    @ApiModelProperty(value = "物料编号")
    private String el_no;

    @Column(name = "`el_name`")
    @ApiModelProperty(value = "物料名称")
    private String elName;

    @Column(name = "`el_unit`")
    @ApiModelProperty(value = "单位")
    private String el_unit;

    @Column(name = "`task_code`")
    @ApiModelProperty(value = "任务明细编码")
    private String taskCode;


    @Column(name = "`status`")
    @ApiModelProperty(value = "任务明细状态")
    private Integer status;

    @Column(name = "`is_zan_cun`")
    @ApiModelProperty(value = "是否是暂存区")
    private Integer isZanCun;

    @Column(name = "`tray_code`")
    @ApiModelProperty(value = "料箱号")
    private String trayCode;

    @Column(name = "`inv_count`")
    @ApiModelProperty(value = "整箱库存")
    private BigDecimal invCount;


    @Column(name = "`zone_code`")
    @ApiModelProperty(value = "库区")
    private String zoneCode;


}
